import React from 'react'
import { Table } from 'semantic-ui-react'
import moment from 'moment'
import 'moment/locale/zh-cn'

moment.locale('zh-cn')

export default ({ children }) => <Table.Cell>{moment(children).fromNow()}</Table.Cell>
